﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<UserLogin>" %>
<%@ Import Namespace="ECube.SEC.FormsAuthentication.Models" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <form method="post" id="signIn" action="" class="login">
        <h2 class="title"><%=Html.Localize("SignInTitle", "Login")%></h2>
        <div><%=Html.Localize("SignInHelp", "Please enter your username and password below.") %></div>
        <%=Html.ValidationSummary() %>
        <div class="username">
            <%= Html.LabelFor(m => m.UserName, true) %>
            <%=Html.TextBoxFor(m => m.UserName, new {  @class = "text" }) %>
            <%= Html.ValidationMessageFor(m => m.UserName) %>
        </div>
        <div class="password">
            <%= Html.LabelFor(m => m.Password,true) %>
            <%=Html.PasswordFor( m => m.Password, new {@class = "text" })%>
            <% = Html.ValidationMessageFor(m => m.Password) %>
        </div>
        <div class="loginDomain">
           <%= Html.LabelFor(m => m.LoginDomain,true) %>
            <%=Html.TextBoxFor( m => m.LoginDomain, new { @class = "text" })%>
        </div>
        <div class="remember">
            <%=Html.CheckBoxFor(m => m.RememberMe)%>
            <%= Html.LabelFor(m => m.RememberMe,true) %>
        </div>
        <div class="submit">
            <input type="submit" value="<%=Html.Localize("SignInButton", "Login") %>" id="login_submit" class="submit button" />
        </div>
        <div><%=Html.Link(Html.Localize("RegistrationLinkLabel", "注册"),ViewData.GetRegisterUrl())%></div>
    </form>
    
</asp:Content>
<asp:Content ContentPlaceHolderID="Title" runat="server">
    <%=Html.PageTitle(Html.Localize("SignInTitle", "Login")) %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server"><%
    Html.RenderScriptTag("base.js"); %>
</asp:Content>